<?
$filename = $MAIN->site['template_path']."/footer.php";
if(file_exists($filename)){
    require_once $filename;
}else{
    Logger::error("Footer [".$MAIN->site['template']. "]template not found");
}
unset($filename);